package cn.xiaolang.function.design_pattern.command;

/**
 * 吃饭命令
 *
 * @author fuhw/Dean
 * @date 2019-07-08
 */
public class EatCommand implements Command {

    private Receiver receiver;

    public EatCommand() {
        this.receiver = new Receiver();
    }


    @Override
    public void execute() {
        receiver.doAction("吃东西");
    }
}
